﻿using B.S.InOutErrorCode;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.InOut.Domain
{
    /// <summary>
    /// 盘点实体
    /// </summary>
    public class StocktakingModel
    {
        /// <summary>
        /// /盘点ID（主键）
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 产品ID（外键）
        /// </summary>
        public string? PId { get; set; }
        /// <summary>
        /// 盘点订单号
        /// </summary>
        public string? StockNum { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? Relatedorders { get; set; }
        /// <summary>
        /// 盘点类型
        /// </summary>
        public ApiStock? Stock { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string? Quantity { get; set; }
        /// <summary>
        /// 盘点数量
        /// </summary>
        public string? StockQuantity { get; set; }
        /// <summary>
        /// 盈亏数量
        /// </summary>
        public string? Profittity { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? RelaCreator { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? RelaReviewer { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? RelaAuditTime { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public ApiStatus? RelaAuditstatus { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? RelaCreationTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? RelaModifiedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? RelaChangeTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Rember { get; set; }
        /// <summary>
        /// 逻辑删除列
        /// </summary>
        public int? IsDelete { get; set; } = 0;
        /// <summary>
        /// 审核原因
        /// </summary>
        public string ShenRember { get; set; }
    }


}
